<script setup lang="ts">

</script>

<template>
  <router-view v-slot="{ Component }">
    <transition name="layout" mode="out-in">
      <component :is="Component" />
    </transition>
  </router-view>
</template>

<style scoped>
.layout-enter-active,
.layout-leave-active {
  transition: all 0.3s ease-out;
}

.layout-enter-from {
  opacity: 0;
  transform: translateX(-20px);
}

.layout-leave-to {
  opacity: 0;
  transform: translateX(20px);
}
</style>
